/* 操作localStorage */
const tokenName = 'hm-news-token-83'

export function setToken (token) {
  localStorage.setItem(tokenName, JSON.stringify(token))
}

export function getToken () {
  return JSON.parse(localStorage.getItem(tokenName)) || {}
}

export function removeToken () {
  localStorage.removeItem(tokenName)
}

